home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / ppp / dp-2.3 / cron / RCS / daily,v next >
Encoding:
Text File  |  1993-01-19  |  749 b   |  50 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @# @;
  7.  
  8.  
  9. 1.1
  10. date     93.01.19.15.37.52;  author ks;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @#! /bin/sh
  26. #
  27. # Run daily to cycle through a weeks worth of DP log files..
  28. #
  29. . /etc/dp.conf
  30. LOG=dp.log
  31. if test -d ${DPLOG_DIR}
  32. then
  33.     cd ${DPLOG_DIR}
  34.     if test -s $LOG
  35.     then
  36.     test -f $LOG.6 && mv $LOG.6  $LOG.7
  37.     test -f $LOG.5 && mv $LOG.5  $LOG.6
  38.     test -f $LOG.4 && mv $LOG.4  $LOG.5
  39.     test -f $LOG.3 && mv $LOG.3  $LOG.4
  40.     test -f $LOG.2 && mv $LOG.2  $LOG.3
  41.     test -f $LOG.1 && mv $LOG.1  $LOG.2
  42.     test -f $LOG.0 && mv $LOG.0  $LOG.1
  43.     cp $LOG    $LOG.0
  44.     chgrp ppp    $LOG $LOG.0
  45.     chmod 664    $LOG $LOG.0
  46.     cp /dev/null $LOG
  47.     fi
  48. fi
  49. @
  50.